﻿using System;
using StockholmsStad.Windows.UI.Modules.Maintenance.Models;
using System.Collections.ObjectModel;
using StockholmsStad.Runtime.Serialization.DataContract;

namespace StockholmsStad.Windows.UI.Modules.Maintenance.Interfaces
{
    public interface IInformationTextService
    {
        /// <summary>
        /// Hämtar presentationsmodellen
        /// </summary>
        /// <returns>InformationTextPresentationModel (<see cref="InformationTextPresentationModel"/>).</returns>
        InformationTextPresentationModel GetDefaultPresentationModel();

        /// <summary>
        /// Hämtar informationstexter inom en viss kategori
        /// </summary>
        /// <returns>ObservableCollection<InformationText> (<see cref="InformationTextPresentationModel"/>).</returns>
        ObservableCollection<InformationText> GetInformationTextsFiltered(int typeId);

        /// <summary>
        /// Lägger till en ny informationstext
        /// </summary>
        /// <returns>ObservableCollection<InformationText> (<see cref="InformationTextPresentationModel"/>).</returns>
        int AddInformationText(InformationText item);

        /// <summary>
        /// Uppdaterar informationstext
        /// </summary>
        void UpdateInformationText(InformationText item);

        /// <summary>
        /// Ta bort informationstext
        /// </summary>
        void DeleteInformationText(InformationText item);
    }
}
